package com.gn.heavenpark.activity;
import android.app.Activity;
import android.app.ProgressDialog;
import android.app.TabActivity;
import android.content.Context;
import android.content.Intent;
import android.location.Criteria;
import android.location.LocationManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

public class Intro extends Activity{
	
	private ProgressDialog mProgressDialog;
	private LocationManager locationManager;
	private String locationProvider;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.intro);
		
		
		locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
		locationProvider = locationManager.getBestProvider(new Criteria(), true);
		

		mProgressDialog = ProgressDialog.show(this, null, "    Loading........");
		
		
		
	
	      Handler handler = new Handler () {
	            @Override
	            public void handleMessage(Message msg) {
	            	Intent intent=new Intent(Intro.this, MyPage.class);
	            	startActivity(intent);
	             finish();
	            }
	           };
	           
	           handler.sendEmptyMessageDelayed(0, 3000);
	       }
		
	}

